/*
  ODASiren.h - 
*/
#ifndef ODASiren_h
#define ODASiren_h

#include "ODPort.h"
#include "WProgram.h"

const uint8_t     GENERIC_OUTDOOR = 1;
const uint8_t     GENERIC_INDOOR = 2;

class Siren {
  public:
    Siren();
    void init(uint8_t pin, uint8_t type);
    void startAlarm();
    void stopAlarm();
    void service();
  private:
    uint8_t _type;
    uint8_t _off;     //Stato della porta per sirena disattivata
    uint8_t _on;      //Stato della porta per sirena attiva
    uint8_t _status;
    Port _port;
    unsigned long _stopTime;
};

#endif